package org.pulloid.android;

import java.util.HashMap;

public class Record extends HashMap<String, Object> {
	
	private Long id;

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	public long getId() {
		if(id == null) {
			Object o = get("_id");
			if(o instanceof Long) {
				id = (Long)o;
			} else if(o != null) {
				id= new Long(o.toString());
			}
		}
		return id != null ? id : 0;
	}

}
